//
//  BaseViewController.m
//  ProjectOfBStage
//
//  Created by cuixin on 15/11/11.
//  Copyright © 2015年 cuixin. All rights reserved.
//

#import "BaseViewController.h"
@interface BaseViewController ()

@property(nonatomic, retain)UITableView *tableView;

@end

@implementation BaseViewController

- (void)viewWillAppear:(BOOL)animated
{
    self.navigationController.navigationBarHidden = YES;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    NSLog(@"hah");
    
    
    [self barViewSubView];
}

#pragma mark ** 自定义导航栏barView

- (void)barViewSubView
{
    self.barView = [[UIView alloc] initWithFrame:CGRectMake(-1 * KWIDTH, -1 * KHEIGHT, self.view.frame.size.width + 2 * KWIDTH, 46 * KHEIGHT)];
    [self.view addSubview:self.barView];
    self.barView.layer.borderWidth = 1;
//    self.barView.backgroundColor = [UIColor yellowColor];
    
    self.barViewLeftButton = [UIButton buttonWithType:UIButtonTypeCustom];
    self.barViewLeftButton.frame = CGRectMake(KWIDTH * 10, KHEIGHT * 24, KWIDTH * 20, KHEIGHT * 20);
    [self.barView addSubview:self.barViewLeftButton];
//    self.barViewLeftButton.backgroundColor = [UIColor redColor];
    
    
    self.barViewRightButton = [UIButton buttonWithType:UIButtonTypeCustom];
    self.barViewRightButton.frame = CGRectMake(KWIDTH * 345, KHEIGHT * 24, KWIDTH * 20, KWIDTH * 20);
    [self.barView addSubview:self.barViewRightButton];
//    self.barViewRightButton.backgroundColor = [UIColor redColor];
    
    self.automaticallyAdjustsScrollViewInsets = NO;
}



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
